home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3 / librw / RWTValHashMultiSet.z / RWTValHashMultiSet
Encoding:
Text File  |  1998-10-30  |  24.4 KB  |  595 lines

  1.  
  2.  
  3.  
  4. RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))                              RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))
  5.  
  6.  
  7.  
  8. NNNNaaaammmmeeee
  9.      RWTValHashMultiSet<T,H,EQ> - Rogue Wave library class
  10.  
  11. SSSSyyyynnnnooooppppssssiiiissss
  12.               #include <rw/tvhasht.h>
  13.  
  14.  
  15.  
  16.               RWTValHashMultiSet<T,H,EQ>
  17.  
  18. PPPPlllleeeeaaaasssseeee NNNNooootttteeee!!!!
  19.      IIIIffff yyyyoooouuuu hhhhaaaavvvveeee tttthhhheeee SSSSttttaaaannnnddddaaaarrrrdddd CCCC++++++++ LLLLiiiibbbbrrrraaaarrrryyyy,,,, uuuusssseeee tttthhhheeee iiiinnnntttteeeerrrrffffaaaacccceeee ddddeeeessssccccrrrriiiibbbbeeeedddd hhhheeeerrrreeee....
  20.      OOOOtttthhhheeeerrrrwwwwiiiisssseeee,,,, uuuusssseeee tttthhhheeee iiiinnnntttteeeerrrrffffaaaacccceeee ffffoooorrrr RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhTTTTaaaabbbblllleeee described in Appendix A.
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. DDDDeeeessssccccrrrriiiippppttttiiiioooonnnn
  28.      This class maintains a collection of values, which are stored according
  29.      to a hash object of type HHHH.  HHHH must offer a hash function for elements of
  30.      type TTTT via a public member
  31.         uuuunnnnssssiiiiggggnnnneeeedddd lllloooonnnngggg ooooppppeeeerrrraaaattttoooorrrr(((())))((((ccccoooonnnnsssstttt TTTT&&&& xxxx)))) ccccoooonnnnsssstttt Objects within the
  32.      collection will be grouped together based on an equality object of type
  33.      EEEEQQQQ. EEEEQQQQ must ensure this grouping via public member
  34.         bbbboooooooollll ooooppppeeeerrrraaaattttoooorrrr(((())))((((ccccoooonnnnsssstttt TTTT&&&& xxxx,,,, ccccoooonnnnsssstttt TTTT&&&& yyyy)))) ccccoooonnnnsssstttt which should return ttttrrrruuuueeee
  35.      if xxxx and yyyy are equivalent, ffffaaaallllsssseeee otherwise.  RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt<<<<TTTT,,,,HHHH,,,,EEEEQQQQ>>>>
  36.      may contain multiple items that compare equal to each other.
  37.      (RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhSSSSeeeetttt<<<<TTTT,,,,HHHH,,,,EEEEQQQQ>>>> will not accept an item that compares equal to an
  38.      item already in the collection.)
  39.  
  40. PPPPeeeerrrrssssiiiisssstttteeeennnncccceeee
  41.      Isomorphic
  42.  
  43. EEEExxxxaaaammmmpppplllleeee
  44.               //
  45.  
  46.  
  47.  
  48.               // tvhmsstr.cpp
  49.           //
  50.           #include <rw/tvhasht.h>
  51.           #include <rw/cstring.h>
  52.           #include <iostream.h>
  53.           struct silly_hash{
  54.              unsigned long operator()(RWCString x) const
  55.              { return x.length() * (long)x[0]; }
  56.           };
  57.           main(){
  58.           RWTValHashMultiSet<RWCString,silly_hash,equal_to<RWCString> > set1;
  59.           RWTValHashMultiSet<RWCString,silly_hash,equal_to<RWCString> > set2;
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))                              RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))
  71.  
  72.  
  73.  
  74.             set1.insert("one");
  75.             set1.insert("two");
  76.             set1.insert("three");
  77.             set1.insert("one");     // OK: duplicates allowed
  78.             set1.insert("one");
  79.             cout << set1.entries() << endl;  // Prints "5"
  80.             set2.insert("one");
  81.             set2.insert("five");
  82.             set2.insert("one");
  83.             cout << ((set1.isEquivalent(set2)) ? "TRUE" : "FALSE") << endl;
  84.             // Prints "FALSE"
  85.             set2.intersection(set1);
  86.             set1.clear();
  87.             cout << set1.entries() << endl;    // Prints "0"
  88.             cout << set2.entries() << endl;    // Prints "2"
  89.             return 0;
  90.  
  91. RRRReeeellllaaaatttteeeedddd CCCCllllaaaasssssssseeeessss
  92.      }
  93.  
  94.  
  95.      Class RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhSSSSeeeetttt<<<<TTTT,,,,HHHH,,,,EEEEQQQQ>>>> offers the same interface to a collection
  96.      that will not accept multiple items that compare equal to each other.
  97.      Class rrrrwwww____hhhhaaaasssshhhhmmmmuuuullllttttiiiisssseeeetttt<<<<TTTT,,,,HHHH,,,,EEEEQQQQ>>>> is the C++-standard compliant collection
  98.      that serves as the underlying implementation for
  99.      RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt<<<<TTTT,,,,HHHH,,,,EEEEQQQQ>>>>.
  100.  
  101. PPPPuuuubbbblllliiiicccc TTTTyyyyppppeeeeddddeeeeffffssss
  102.               typedef rw_hashmultiset<T,H,EQ>                container_type;
  103.           typedef container_type::iterator               iterator;
  104.           typedef container_type::const_iterator         const_iterator;
  105.           typedef container_type::size_type              size_type;
  106.           typedef T                                      value_type;
  107.           typedef T&                                     reference;
  108.           typedef const T&                               const_reference;
  109.  
  110.  
  111.  
  112. PPPPuuuubbbblllliiiicccc CCCCoooonnnnssssttttrrrruuuuccccttttoooorrrrssss
  113.               RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt<<<<TTTT,,,,HHHH,,,,EEEEQQQQ>>>>
  114.           (size_type sz = 1024,const H& h = H(),const EQ& eq = EQ());
  115.  
  116.  
  117.      Constructs an empty set.  The underlying hash table representation will
  118.      have sssszzzz buckets, will use hhhh as its hashing function and will use eeeeqqqq to
  119.      determine equivalence between elements.
  120.  
  121.               RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt<<<<TTTT,,,,HHHH,,,,EEEEQQQQ>>>>(const rw_hashmultiset<T,H,EQ>& s);
  122.  
  123.  
  124.      Constructs a set by copying all elements of ssss.
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))                              RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))
  137.  
  138.  
  139.  
  140.               RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt<<<<TTTT,,,,HHHH,,,,EEEEQQQQ>>>>(const RWTValHashMultiSet<T,H,EQ>&);
  141.  
  142.  
  143.      Copy constructor.
  144.  
  145.               RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt<<<<TTTT,,,,HHHH,,,,EEEEQQQQ>>>>
  146.           (const H& h,size_type sz = RWDEFAULT_CAPACITY);
  147.  
  148.  
  149.      Creates an empty hashed multi-set which uses the hash object hhhh and has an
  150.      initial hash table capacity of sssszzzz.
  151.  
  152.               RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt<<<<TTTT,,,,HHHH,,,,EEEEQQQQ>>>>(const T* first,const T* last,size_type sz = 1024,const H& h = H(),const EQ& eq = EQ());
  153.  
  154.  
  155.      Constructs a set by copying elements from the array of TTTTs pointed to by
  156.      ffffiiiirrrrsssstttt, up to, but not including, the element pointed to by llllaaaasssstttt. The
  157.      underlying hash table representation will have sssszzzz buckets, will use hhhh as
  158.      its hashing function and will use eeeeqqqq to determine equivalence between
  159.      elements.
  160.  
  161. PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr OOOOppppeeeerrrraaaattttoooorrrrssss
  162.               RWTValHashMultiSet<T,H,EQ>&
  163.           ooooppppeeeerrrraaaattttoooorrrr====(const RWTValHashMultiSet<T,H,EQ>& s);
  164.  
  165.  
  166.  
  167.               RWTValHashMultiSet<T,H,EQ>&
  168.           ooooppppeeeerrrraaaattttoooorrrr====(const rw_hashmultiset<T,H,EQ>& s);
  169.  
  170.  
  171.      Destroys all elements of self and replaces them by copying all elements
  172.      of ssss.
  173.  
  174.               bool
  175.           ooooppppeeeerrrraaaattttoooorrrr========(const RWTValHashMultiSet<T,H,EQ>& s) const;
  176.           bool
  177.           ooooppppeeeerrrraaaattttoooorrrr========(const rw_hashmultiset<T,H,EQ>& s) const;
  178.  
  179.  
  180.      Returns ttttrrrruuuueeee if self compares equal to ssss, otherwise returns ffffaaaallllsssseeee.  Two
  181.      collections are equal if both have the same number of entries, and
  182.      iterating through both collections produces, in turn, individual elements
  183.      that compare equal to each other.
  184.  
  185. PPPPuuuubbbblllliiiicccc MMMMeeeemmmmbbbbeeeerrrr FFFFuuuunnnnccccttttiiiioooonnnnssss
  186.               void
  187.           aaaappppppppllllyyyy(void (*fn)(const_reference,void*), void* d) const;
  188.  
  189.  
  190.      Applies the user-defined function pointed to by ffffnnnn to every item in the
  191.      collection.  This function must have prototype:
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))                              RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.                  void yourfun(const_reference a, void* d);
  211.  
  212.  
  213.       Client data may be passed through parameter dddd.
  214.  
  215.               iterator
  216.           bbbbeeeeggggiiiinnnn();
  217.           const_iterator
  218.           bbbbeeeeggggiiiinnnn() const;
  219.  
  220.  
  221.      Returns an iterator positioned at the first element of self.
  222.  
  223.               size_type
  224.           ccccaaaappppaaaacccciiiittttyyyy() const;
  225.  
  226.  
  227.      Returns the number of buckets(slots) available in the underlying hash
  228.      representation.  See rrrreeeessssiiiizzzzeeee below.
  229.  
  230.               void
  231.           cccclllleeeeaaaarrrr();
  232.  
  233.  
  234.      Clears the collection by removing all items from self.  Each item will
  235.      have its destructor called.
  236.  
  237.               bool
  238.           ccccoooonnnnttttaaaaiiiinnnnssss(const_reference a) const;
  239.  
  240.  
  241.      Returns ttttrrrruuuueeee if there exists an element tttt in self that compares equal to
  242.      aaaa, otherwise returns ffffaaaallllsssseeee.
  243.  
  244.               bool
  245.           ccccoooonnnnttttaaaaiiiinnnnssss(bool (*fn)(const_reference,void*), void* d) const;
  246.  
  247.  
  248.      Returns ttttrrrruuuueeee if there exists an element tttt in self such that the
  249.      expression ((((((((****ffffnnnn))))((((tttt,,,,dddd)))))))) is ttttrrrruuuueeee, otherwise returns ffffaaaallllsssseeee.  ffffnnnn points to a
  250.      user-defined tester function which must have prototype:
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))                              RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))
  269.  
  270.  
  271.  
  272.                  bool yourTester(const_reference a, void* d);
  273.  
  274.  
  275.      Client data may be passed through parameter dddd.
  276.  
  277.               void
  278.           ddddiiiiffffffffeeeerrrreeeennnncccceeee(const RWTValHashMultiSet<T,H,EQ>& s);
  279.  
  280.  
  281.      Sets self to the set-theoretic difference given by ((((sssseeeellllffff ---- ssss)))).
  282.  
  283.               iterator
  284.           eeeennnndddd();
  285.           const_iterator
  286.           eeeennnndddd() const;
  287.  
  288.  
  289.      Returns an iterator positioned "just past" the last element in self.
  290.  
  291.               size_type
  292.           eeeennnnttttrrrriiiieeeessss() const;
  293.  
  294.  
  295.      Returns the number of items in self.
  296.  
  297.               float
  298.           ffffiiiillllllllRRRRaaaattttiiiioooo() const;
  299.  
  300.  
  301.      Returns the ratio eeeennnnttttrrrriiiieeeessss(((())))/ccccaaaappppaaaacccciiiittttyyyy(((()))).
  302.  
  303.               bool
  304.           ffffiiiinnnndddd(const_reference a,T& k) const;
  305.  
  306.  
  307.      If there exists an element tttt in self such that the expression ((((tttt ======== aaaa)))) is
  308.      ttttrrrruuuueeee, assigns tttt to kkkk and returns ttttrrrruuuueeee.  Otherwise, returns ffffaaaallllsssseeee and
  309.      leaves the value of kkkk unchanged.
  310.  
  311.               bool
  312.           ffffiiiinnnndddd(bool (*fn)(const_reference,void*),void* d,T& k) const;
  313.  
  314.  
  315.      If there exists an element tttt in self that compares equal to aaaa, assigns tttt
  316.      to kkkk and returns ttttrrrruuuueeee.  Otherwise, returns ffffaaaallllsssseeee and leaves the value of
  317.      kkkk unchanged.  ffffnnnn points to a user-defined tester function which must have
  318.      prototype:
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))                              RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))
  335.  
  336.  
  337.  
  338.                  bool yourTester(const_reference a, void* d);
  339.  
  340.  
  341.      Client data may be passed through parameter dddd.
  342.  
  343.               bool
  344.           iiiinnnnsssseeeerrrrtttt(const_reference a);
  345.  
  346.  
  347.      Adds the item aaaa to the collection.  Returns ttttrrrruuuueeee.
  348.  
  349.               void
  350.           iiiinnnntttteeeerrrrsssseeeeccccttttiiiioooonnnn(const RWTValHashMultiSet<T,H,EQ>& s);
  351.  
  352.  
  353.      Destructively performs a set theoretic intersection of self and ssss,
  354.      replacing the contents of self with the result.
  355.  
  356.               bool
  357.           iiiissssEEEEmmmmppppttttyyyy() const;
  358.  
  359.  
  360.      Returns ttttrrrruuuueeee if there are no items in the collection, ffffaaaallllsssseeee otherwise.
  361.  
  362.               bool
  363.           iiiissssEEEEqqqquuuuiiiivvvvaaaalllleeeennnntttt(const RWTValHashMultiSet<T,H,EQ>& s) const;
  364.  
  365.  
  366.      Returns ttttrrrruuuueeee if there is set equivalence between self and ssss, and returns
  367.      ffffaaaallllsssseeee otherwise.
  368.  
  369.               bool
  370.           iiiissssPPPPrrrrooooppppeeeerrrrSSSSuuuubbbbsssseeeettttOOOOffff(const RWTValHashMultiSet<T,H,EQ>& s) const;
  371.  
  372.  
  373.      Returns ttttrrrruuuueeee if self is a proper subset of ssss, and returns  ffffaaaallllsssseeee
  374.      otherwise.
  375.  
  376.               bool
  377.           iiiissssSSSSuuuubbbbsssseeeettttOOOOffff(const RWTValHashMultiSet<T,H,EQ>& s) const;
  378.  
  379.  
  380.      Returns ttttrrrruuuueeee if self is a subset of ssss, and returns ffffaaaallllsssseeee otherwise.
  381.  
  382.               size_type
  383.           ooooccccccccuuuurrrrrrrreeeennnncccceeeessssOOOOffff(const_reference a) const;
  384.  
  385.  
  386.      Returns the number of elements tttt in self that compares equal to aaaa.
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))                              RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))
  401.  
  402.  
  403.  
  404.               size_type
  405.           ooooccccccccuuuurrrrrrrreeeennnncccceeeessssOOOOffff(bool (*fn)(const_reference,void*),void* d) const;
  406.  
  407.  
  408.      Returns the number of elements tttt in self such that the
  409.      expression((((((((****ffffnnnn))))((((tttt,,,,dddd)))))))) is ttttrrrruuuueeee.   ffffnnnn points to a user-defined tester
  410.      function which must have prototype:
  411.  
  412.  
  413.  
  414.  
  415.  
  416.                  bool yourTester(const_reference a, void* d);
  417.  
  418.  
  419.      Client data may be passed through parameter dddd.
  420.  
  421.               bool
  422.           rrrreeeemmmmoooovvvveeee(const_reference a);
  423.  
  424.  
  425.      Removes the first element tttt in self that compares equal to aaaa and returns
  426.      ttttrrrruuuueeee.  Returns ffffaaaallllsssseeee if there is no such element.
  427.  
  428.               bool
  429.           rrrreeeemmmmoooovvvveeee(bool (*fn)(const_reference,void*), void* d);
  430.  
  431.  
  432.      Removes the first element tttt in self such that the expression ((((((((****ffffnnnn))))((((tttt,,,,dddd))))))))
  433.      is ttttrrrruuuueeee and returns ttttrrrruuuueeee.  Returns ffffaaaallllsssseeee if there is no such element.  ffffnnnn
  434.      points to a user-defined tester function which must have prototype:
  435.  
  436.  
  437.  
  438.  
  439.  
  440.                  bool yourTester(const_reference a, void* d);
  441.  
  442.  
  443.      Client data may be passed through parameter dddd.
  444.  
  445.               size_type
  446.           rrrreeeemmmmoooovvvveeeeAAAAllllllll(const_reference a);
  447.  
  448.  
  449.      Removes all elements tttt in self that compare equal to aaaa.  Returns the
  450.      number of items removed.
  451.  
  452.               size_type
  453.           rrrreeeemmmmoooovvvveeeeAAAAllllllll(bool (*fn)(const_reference,void*), void* d);
  454.  
  455.  
  456.  
  457.  
  458.  
  459.                                                                         PPPPaaaaggggeeee 7777
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))                              RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))
  467.  
  468.  
  469.  
  470.      Removes all elements tttt in self such that the expression ((((((((****ffffnnnn))))((((tttt,,,,dddd))))))))is
  471.      ttttrrrruuuueeee.  Returns the number of items removed.  ffffnnnn points to a user-defined
  472.      tester function which must have prototype:
  473.  
  474.  
  475.  
  476.  
  477.  
  478.                   bool yourTester(const_reference a, void* d);
  479.  
  480.  
  481.      Client data may be passed through parameter dddd.
  482.  
  483.               void
  484.           rrrreeeessssiiiizzzzeeee(size_type sz);
  485.  
  486.  
  487.      Changes the capacity of self by creating a new hashed multi-set with a
  488.      capacity of  sssszzzz .  rrrreeeessssiiiizzzzeeee copies every element of self into the new
  489.      container and finally swaps the internal representation of the new
  490.      container with the internal representation of sssseeeellllffff.
  491.  
  492.               rw_hashmultiset<T,H,EQ>&
  493.           ssssttttdddd();
  494.           const rw_hashmultiset<T,H,EQ>&
  495.           ssssttttdddd() const;
  496.  
  497.  
  498.      Returns a reference to the underlying C++-standard collection that serves
  499.      as the implementation for self.  This reference may be used freely,
  500.      providing access to the C++-standard interface as well as
  501.      interoperability with other software components that make use of the
  502.      C++-standard collections.
  503.  
  504.               void
  505.           ssssyyyymmmmmmmmeeeettttrrrriiiiccccDDDDiiiiffffffffeeeerrrreeeennnncccceeee(const RWTValHashMultiSet<T,H,EQ>& s);
  506.  
  507.  
  508.      Destructively performs a set theoretic symmetric difference operation on
  509.      self and ssss.  Self is replaced by the result. A symmetric difference can
  510.      be informally defined as (A_B)-(A_B).
  511.  
  512.               void
  513.           UUUUnnnniiiioooonnnn(const RWTValHashMultiSet<T,H,EQ>& rhs);
  514.  
  515.  
  516.      Destructively performs a set theoretic union operation on self and rrrrhhhhssss.
  517.      Self is replaced by the result. Note the uppercase "U" in UUUUnnnniiiioooonnnn to avoid
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.                                                                         PPPPaaaaggggeeee 8888
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))                              RRRRWWWWTTTTVVVVaaaallllHHHHaaaasssshhhhMMMMuuuullllttttiiiiSSSSeeeetttt((((3333CCCC++++++++))))
  533.  
  534.  
  535.  
  536.      conflict with the C++ reserved word.
  537.  
  538. RRRReeeellllaaaatttteeeedddd GGGGlllloooobbbbaaaallll OOOOppppeeeerrrraaaattttoooorrrrssss
  539.               RWvostream&
  540.           ooooppppeeeerrrraaaattttoooorrrr<<<<<<<<(RWvostream& strm,
  541.                  const RWTValHashMultiSet<T,H,EQ>& coll);
  542.           RWFile&
  543.           ooooppppeeeerrrraaaattttoooorrrr<<<<<<<<(RWFile& strm,
  544.                  const RWTValHashMultiSet<T,H,EQ>& coll);
  545.  
  546.  
  547.      Saves the collection ccccoooollllllll onto the output stream ssssttttrrrrmmmm, or a reference to
  548.      it if it has already been saved.
  549.  
  550.               RWvistream&
  551.           ooooppppeeeerrrraaaattttoooorrrr>>>>>>>>(RWvistream& strm, RWTValHashMultiSet<T,H,EQ>& coll);
  552.           RWFile&
  553.           ooooppppeeeerrrraaaattttoooorrrr>>>>>>>>(RWFile& strm, RWTValHashMultiSet<T,H,EQ>& coll);
  554.  
  555.  
  556.      Restores the contents of the collection ccccoooollllllll from the input stream ssssttttrrrrmmmm.
  557.  
  558.               RWvistream&
  559.           ooooppppeeeerrrraaaattttoooorrrr>>>>>>>>(RWvistream& strm, RWTValHashMultiSet<T,H,EQ>*& p);
  560.           RWFile&
  561.           ooooppppeeeerrrraaaattttoooorrrr>>>>>>>>(RWFile& strm, RWTValHashMultiSet<T,H,EQ>*& p);
  562.  
  563.  
  564.      Looks at the next object on the input stream ssssttttrrrrmmmm and either creates a
  565.      new collection off the heap and sets pppp to point to it, or sets pppp to point
  566.      to a previously read instance.  If a collection is created off the heap,
  567.      then you are responsible for deleting it.
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586.  
  587.  
  588.  
  589.  
  590.  
  591.                                                                         PPPPaaaaggggeeee 9999
  592.  
  593.  
  594.  
  595.